package com.ruoyi.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BasePro {
    /*
    +---------------+--------------+------+-----+---------+-------+
    | Field         | Type         | Null | Key | Default | Extra |
    +---------------+--------------+------+-----+---------+-------+
    | product_code  | varchar(50)  | NO   | PRI | NULL    |       |
    | product_name  | varchar(100) | YES  |     | NULL    |       |
    | category_code | int(11)      | YES  |     | NULL    |       |
    | create_time   | datetime     | YES  |     | NULL    |       |
    +---------------+--------------+------+-----+---------+-------+
     */
    private String productCode;
    private String productName;
    private Integer categoryCode;

    private BaseCate baseCate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(Integer categoryCode) {
        this.categoryCode = categoryCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setBaseCate(BaseCate baseCate) {
        this.baseCate = baseCate;
    }

    public BaseCate getBaseCate() {
        return baseCate;
    }
}
